package com.ctshk.sapp.order.hotel.controller;

import com.ctshk.common.annotations.OperationLogAnnotation;
import com.ctshk.common.dto.Result;
import com.ctshk.common.enums.OperationLogModel;
import com.ctshk.common.enums.OperationLogType;
import com.ctshk.common.model.TokenUser;
import com.ctshk.common.web.support.BaseController;
import com.ctshk.rpc.hotel.req.HotelManualOrderReq;
import com.ctshk.rpc.hotel.service.IHotelManualOrderService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.apache.dubbo.config.annotation.DubboReference;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.validation.Valid;

/**
 * <p>
 * 酒店手工单（外挂单） 前端控制器
 * </p>
 *
 * @author yinhuan
 * @since 2021-03-08
 */
@Api(value = "酒店手工单（外挂单）",tags = "酒店手工单（外挂单）")
@RestController
@RequestMapping("/hotel/manual/order")
public class HotelManualOrderController extends BaseController {
    @DubboReference
    private IHotelManualOrderService hotelManualOrderService;
/* TODO 尹欢做的外挂单
    @ApiOperation(value="添加外挂单", notes="添加外挂单")
    @OperationLogAnnotation(operModul = OperationLogModel.ORDER, operType = OperationLogType.ADD, operTitle = "添加外挂单", operDesc = "添加外挂单")
    @PostMapping("/save")
    public Result saveHotelManualOrder(@RequestBody @Valid HotelManualOrderReq hotelManualOrderReq) {
        TokenUser user = getCurrentUser(getRequest());
        return hotelManualOrderService.addHotelManualOrder(hotelManualOrderReq,user);
    }*/
}
